package com.gongye.courseselectionsystem.pojo.po;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 学生表
 *
 * @author baorongchuan
 * @TableName student
 */
@TableName(value = "student")
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("学生表实体类")
public class Student implements Serializable {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ColumnWidth(value = 11)
    @ExcelProperty("学号")
    @ApiModelProperty("学号")
    @TableField(value = "studentNumber")
    private Integer studentNumber;

    @ColumnWidth(value = 11)
    @ExcelProperty("班级号")
    @ApiModelProperty("班级号")
    @TableField(value = "classNumber")
    private Integer classNumber;

    @ColumnWidth(value = 11)
    @ExcelProperty("姓名")
    @ApiModelProperty("姓名")
    @TableField(value = "name")
    private String name;

    @ColumnWidth(value = 11)
    @ExcelProperty("性别")
    @ApiModelProperty("性别")
    @TableField(value = "sex")
    private String sex;

    @ColumnWidth(value = 11)
    @ExcelProperty("年龄")
    @ApiModelProperty("年龄")
    @TableField(value = "age")
    private Integer age;

    @ColumnWidth(value = 23)
    @ExcelProperty("邮箱")
    @ApiModelProperty("邮箱")
    @TableField(value = "email")
    private String email;

    @ColumnWidth(value = 23)
    @ExcelProperty("手机号")
    @ApiModelProperty("手机号")
    @TableField(value = "phone")
    private String phone;

}